import numpy as np
import cv2

def _make_mask(size, point, rad):
    mask = np.zeros(size)
    cv2.circle(mask, point[::-1], int(rad), 1, thickness=-1)
    return mask